package com.atl.enity.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admin_user")
@ApiModel(value="AdminUser对象", description="")
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "帐号")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginTime;

    private LocalDateTime timestamp;

    @ApiModelProperty(value = "其他状态")
    private Integer status;

    @ApiModelProperty(value = "0:有效 1:禁止登录")
    private Integer isDisable;

    @TableLogic
    @ApiModelProperty(value = "1:删除，0:未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "父级管理员id")
    private Long adminParentId;

    @ApiModelProperty(value = "父级分销代理商id")
    private Long agentParentId;

    @ApiModelProperty(value = "代理商邀请码")
    private String userInviteCode;

    @ApiModelProperty(value = "推荐邀请关系树")
    private String invitationPath;

    @ApiModelProperty(value = "审核状态(1-待审核;2-已审核;3-拒绝)")
    private Integer inspectStatus;


}
